package com.yq.design.singleton.eStatic;

/**
 * @ClassName EStatic
 * @Description 静态常量 饿汉式
 * @Author yaoqiang
 * @Date 2021/3/8 18:46
 * @Version 1.0
 */
public class Singleton {
    private Singleton() {
    }
    private static final Singleton instance=new Singleton();

    public static Singleton getInstance(){
        return instance;
    }
}
